package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 用户实体类
 */
@TableName("t_user")
public class UserBean {
    /**
     * 编号
     */
    @TableId(value = "pk_userId",type = IdType.AUTO)
    private Integer id;
    /**用户名*/
    @TableField("u_name")
    private String name;
    /**密码*/
    @TableField("u_pwd")
    private String pwd = "666";
    /**真实姓名*/
    @TableField("u_realName")
    private String realName;
    /**等级*/
    @TableField("u_grade")
    private String grade;

    public UserBean(String name, String realName, String grade) {
        this.name = name;
        this.realName = realName;
        this.grade = grade;
    }

    public UserBean() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    @Override
    public String toString() {
        return "UserBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", pwd='" + pwd + '\'' +
                ", realName='" + realName + '\'' +
                ", grade='" + grade + '\'' +
                '}';
    }
}
